﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

<Table("Localidad")>
Public Class Localidad
    Implements IEntity


    <Key()>
    <DatabaseGenerated(DatabaseGeneratedOption.Identity)>
    Public Property IdLocalidad() As Integer

    <StringLength(100)>
    Public Overridable Property Nombre() As String

    <NotMapped()>
    Public Property ID() As Integer Implements IEntity.ID
        Get
            Return IdLocalidad
        End Get
        Set(ByVal value As Integer)
            IdLocalidad = value
        End Set
    End Property

End Class
